package tg.app.rj.outsour;

import java.rmi.RemoteException;
import psdi.mbo.MAXTableDomain;
import psdi.mbo.Mbo;
import psdi.mbo.MboSetRemote;
import psdi.mbo.MboValue;
import psdi.util.MXException;

/***
 * 
 * @author PZX
 *
 */
public class FldCompanyControl extends MAXTableDomain
{
  public FldCompanyControl(MboValue mboValue)
    throws MXException, RemoteException
  {
    super(mboValue);
    String s = getMboValue().getAttributeName();
    setRelationship("companies", "company = :" + s);
    setLookupKeyMapInOrder(new String[] { s }, new String[] { "company" });
  }

  public MboSetRemote getList()
    throws MXException, RemoteException
  {
    MboValue thisValue = getMboValue();
    Mbo thisMbo = thisValue.getMbo();
    setListCriteria(" 1=1");
    return super.getList();
  }
}